package com.jingbian.cppccbackend.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingbian.cppccbackend.entity.PublicOpinionSigners;
import com.jingbian.cppccbackend.entity.dto.PublicOpinionSignersListDTO;
import com.jingbian.cppccbackend.vo.PublicOpinionSignersListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PublicOpinionSignersMapper extends BaseMapper<PublicOpinionSigners> {
    /**
     * 批量插入联名人
     * @param list 联名人列表
     */
    void batchInsert(@Param("list") List<PublicOpinionSigners> list);

    List<PublicOpinionSignersListVO> getSignerList(@Param("params") PublicOpinionSignersListDTO params);
}
